function showTopMessage(obj) {
  return (this.$message({
    type: obj.type,
    message: obj.content,
    duration: obj.autoClose ? 6000 : 0,
    showClose: obj.showClose,
  }));
}

function showSimpleAutoHideTopMessage(type, text) {
  this.showTopMessage({
    type: type,
    content: text,
    autoClose: true,
    showClose: true,
  })
}

function showRightMessage(msgObj) {
  return (this.$notify({
    title: msgObj.title,
    message: msgObj.content,
    type: msgObj.type,
    duration: msgObj.autoClose ? 8000 : 0,
    showClose: msgObj.showClose,
  }));
}

function getSimpleRightMsgObj(title, msg, type, autoClose, showClose) {
  return {
    title: title,
    content: msg,
    type: type,
    autoClose: autoClose,
    showClose: showClose
  };
}